

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Relation
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _RelationNameAR ="";
public System.String RelationNameAR
{
get { return _RelationNameAR;}
set { _RelationNameAR = value;}
}
System.String _RelationNameEN ="";
public System.String RelationNameEN
{
get { return _RelationNameEN;}
set { _RelationNameEN = value;}
}
System.String _RelationCode ="";
public System.String RelationCode
{
get { return _RelationCode;}
set { _RelationCode = value;}
}
public Relation()
{
}
public Relation(System.String __RelationNameAR,System.String __RelationNameEN,System.String __RelationCode)
{
_RelationNameAR = __RelationNameAR;
_RelationNameEN = __RelationNameEN;
_RelationCode = __RelationCode;
}
public Relation(System.Int64 __ID,System.String __RelationNameAR,System.String __RelationNameEN,System.String __RelationCode)
{
_ID = __ID;
_RelationNameAR = __RelationNameAR;
_RelationNameEN = __RelationNameEN;
_RelationCode = __RelationCode;
}


             public override bool Equals(object obj)
         {
             if (obj is Relation)
             {
                 Relation newObj = (Relation)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
